#include"ThreadPool.hpp"
#include"Task.hpp"
#include<memory>
using namespace ThreadPoolModule;
int main(){
    ENABLE_CONSOLO_LOG();
    ThreadPool<task_t>::getinstance()->Start();
    // std::unique_ptr<ThreadPool<task_t>> tp=std::make_unique<ThreadPool<task_t>>();
    // tp->Start();
    int cnt=10;
    while(cnt--)
    {
        sleep(1);
        ThreadPool<task_t>::getinstance()->Equeue(Push);
    }
    sleep(3);
    ThreadPool<task_t>::getinstance()->Stop();
    ThreadPool<task_t>::getinstance()->Wait();;
}